package com.example.permissionserviceconsumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableHystrix
@EnableHystrixDashboard
//@ComponentScan(excludeFilters = {
////		@org.springframework.context.annotation.ComponentScan.Filter(
////				type = org.springframework.context.annotation.FilterType.CUSTOM,
////				classes = {org.springframework.boot.context.TypeExcludeFilter.class}),
//		@org.springframework.context.annotation.ComponentScan.Filter(
//				type = org.springframework.context.annotation.FilterType.CUSTOM,
//				classes = {org.springframework.boot.autoconfigure.AutoConfigurationExcludeFilter.class}
//				)
//})
//@MapperScan(basePackages = "com.example.permissionserviceconsumer.dao")
@ComponentScan(basePackages= {"com.myprojects.common.config","com.example.permissionserviceconsumer"})
public class PermissionServiceConsumerApplication {

	public static void main(String[] args) {
		SpringApplication.run(PermissionServiceConsumerApplication.class, args);
	}
}
